import request from '@/utils/request'

// 查询银行账户列表
export function listBankAccount(query) {
    return request({
        url: '/flcompany/config/bankAccount/list',
        method: 'get',
        params: query
    })
}

// 新增银行账户
export function addBankAccount(data) {
    return request({
        url: '/flcompany/config/bankAccount',
        method: 'post',
        data: data
    })
}

// 修改银行账户
export function updateAccount(data) {
    return request({
        url: '/flcompany/config/bankAccount',
        method: 'put',
        data: data
    })
}

// 删除银行账户
export function delAccount(id) {
    return request({
        url: '/flcompany/config/bankAccount/' + id,
        method: 'delete'
    })
}